export default{
    // 1.设置路由模式
    mode:"history",
    routes: [
        {
            path: "/register",
            alias: "/2",
            name: "register",
            component: () => import('@/views/AppRegister.vue'),
            meta: {
                title: "医院就诊综合系统-注册页面",
            }
        },
        {
            path: "/",
            alias: "/1",
            name: "login",
            component: () => import('@/views/AppLogin.vue'),
            meta: {
                title: "医院就诊综合系统-登录页面",
            }
        },
        {
            path: "/3-3",
            alias: "/3-3",
            name: "home-3",
            component: () => import('@/views/common/AppHome.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "医院就诊综合系统-首页",
            }
        },
        {
            path: "/3-2",
            alias: "/3-2",
            name: "home-2",
            component: () => import('@/views/common/DoctorHome.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "医院就诊综合系统-医生首页",
            }
        },
        {
            path: "/3-1",
            alias: "/3-1",
            name: "home-1",
            component: () => import('@/views/common/AdminHome.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "医院就诊综合系统-管理员首页",
            }
        },
        {
            path: "/check",
            alias: "/1-3",
            name: "check",
            component: () => import('@/views/common/AdminCheck.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "医院就诊综合系统-管理员首页",
            }
        },
        {
            path: "/medicine",
            alias: "/1-4",
            name: "medicine",
            component: () => import('@/views/common/AdminMedicine.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "医院就诊综合系统-管理员首页",
            }
        },
        {
            path: "/test",
            alias: "/4",
            name: "home-1",
            component: () => import('@/views/OutpatientAppointment.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "医院就诊综合系统-门诊预约",
            },
            children:[
                {
                    path: "/test/test1",
                    alias: "/4-1",
                    name: "GIMedicine",
                    component: () => import('@/views/Department/GIMedicine.vue'),
                    meta: {
                        HeaderShowOrNot: true,
                        FooterShowOrNot: true,
                        title: "门诊预约-消化内科",
                    },
                },
                {
                    path: "/test/test2",
                    alias: "/4-2",
                    name: "neurosurgery",
                    component: () => import('@/views/Department/neurosurgery.vue'),
                    meta: {
                        HeaderShowOrNot: true,
                        FooterShowOrNot: true,
                        title: "门诊预约-神经外科",
                    },
                },

            ]
        },
        {

            path: "/nucleic",
            name: "nucleicchoice",
            alias: "/5",
            component: () => import('@/views/Nucleic/TypeChoice.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "核酸检测",
            }
        },
        {
            path: "/notice",
            name: "notice",
            alias: "/6",
            component: () => import('@/views/Nucleic/NucleicNotice.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "核酸检测注意事项",
            }
        },
        {
            path: "/questionnaire",
            name: "questionnaire",
            alias: "/7",
            component: () => import('@/views/Nucleic/Questionnaire.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "分诊问卷",
            }
        },

        {
            path: "/Rostering",
            alias: "/5-1",
            name: "Rostering",
            component: () => import('@/views/RosteringDoc.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "医院就诊综合系统-排班",
            },

        },
        {
            path: "/RosteringConcrete",
            alias: "/6",
            name: "RosteringConcrete",
            component: () => import('@/views/RosteringConcrete.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "医院就诊综合系统-排班",
            },
        },

        {
            path: "/forget",
            alias: "/1-1",
            name: "forget",
            component: () => import('@/views/AppForget'),
            meta: {
                title: "医院就诊综合系统-忘记密码",
            },
        },
        {
            path: "/chelist",
            name: "chelist",
            alias: "/8",
            component: () => import('@/views/CheckDoctor/CheckList.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
                title: "检查列表",
            }
        },
        {
            path: "/myPatient",
            name: "7-1",
            alias: "/7-1",
            component: () => import('@/views/common/MyPatient.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
            }
        },
        {
            path: "/visits",
            name: "7-2",
            alias: "/7-2",
            component: () => import('@/views/common/PhysicianVisits.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
            }
        },
        {
            path: "/question",
            name: "7-3",
            alias: "/7-3",
            component: () => import('@/views/common/QuestionNaire.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
            }
        },
        {
            path: "/pay",
            name: "8-8 ",
            alias: "/8-8",
            component: () => import('@/views/Nucleic/NucleicPay.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
            }
        },
        {
            path: "/info",
            alias: "2-1",
            component: () => import('@/views/common/AppInfo.vue'),
            meta: {
                HeaderShowOrNot: true,
                FooterShowOrNot: true,
            }
        }
    ]
}
